package com.chance.cc.crawler.development.command.trigger.domain.jiemian;

import com.chance.cc.crawler.core.downloader.HttpPage;
import com.chance.cc.crawler.development.command.trigger.domain.vm.commentCrawlerTriggerInfo;
import com.chance.cc.crawler.meta.core.bean.CrawlerMetaConstant;

/**
 * @Author Zhao.Hhuan
 * @Date Create in 2021/4/11 12:22
 * @Description
 *
 *    界面新闻
 **/
public class JiemianCrawlerTriggerInfo extends commentCrawlerTriggerInfo {
    private static final String domain = "jiemian";
    public static void simpleCrawlerScheduleTriggerInfo(String crawlerKey,String crawlerTriggerKey) {
        HttpPage httpPage = crawlerJobTriggerCommand.addOrUpdateScheduleCrawlerTrigger(
                crawlerKey,
                crawlerTriggerKey,
                domain,
                CrawlerMetaConstant.ScheduleJobTrigger_Simple,
                "",
                "界面新闻临时采集任务"
        );
        System.out.println("添加采集调度信息：" + httpPage.getRawText());
        System.out.println("triggerKey: " + crawlerTriggerKey);
    }

}
